import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import Vant from "vant";
import "vant/lib/index.less";
import "./assets/css/index.less";
import {
  Notify,
  Dialog
} from "vant";
import "lib-flexible/flexible";
import "@/assets/fonts/iconfont.css";

import axios from "axios";
import $ from "jquery";
Vue.prototype.$axios = axios;
Vue.use(Vant);
import requestAnimationFrameHack from "./utils/requestAnimationFram";
import jequeryExtensFly from "./utils/fly";

requestAnimationFrameHack();
jequeryExtensFly($);
window.$ = $;

Vue.use(Notify).use(Dialog);

Vue.config.productionTip = false;

import Touch from "yg-v-touch";
let option = {
  //滑动时间限制----默认300（ms）
  swipeTime: 200,
  //长按时间限制----默认800（ms）
  longTapTime: 1000,
  //触发滑动事件的最小水平位移----默认10(px)
  widthX: 11,
  //触发滑动事件的最小垂直位移----默认40(px)
  widthY: 42,
};

//option为初始化设置项，如不设置将采用默认设置
Vue.use(Touch, option);
new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");